﻿<!DOCTYPE HTML>
<html lang="zh">
<head>
<title>MenuCreate - 语法 &amp; 使用 | AutoHotkey v2</title>
<meta name="description" content="The MenuCreate function creates a Menu object, which can be used to create and display a menu." />
<meta name="ahk:equiv-v1" content="commands/Menu.htm" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../static/theme.css" rel="stylesheet" type="text/css" />
<script src="../static/content.js" type="text/javascript"></script>
<script type="text/javascript">$(function(){0<=window.navigator.userAgent.toLowerCase().indexOf("ucbrowser")&&CaoNiMaDeUc()})</script>
</head>
<body>

<h1>MenuCreate</h1>

<p>创建一个<a href="../objects/Menu.htm">菜单对象 </a>, 可用于创建和显示菜单.</p>

<pre class="Syntax">Menu := <span class="func">MenuCreate</span>()</pre>

<h2 id="Remarks">备注</h2>
<p>要检索托盘菜单, 请使用 <code>menu := A_TrayMenu</code>.</p>

<h2 id="Related">相关</h2>
<p><a href="../objects/Menu.htm">Menu object</a>, <a href="MenuFromHandle.htm">MenuFromHandle</a></p>

<h2 id="Examples">示例</h2>
<p>请参阅 <a href="../objects/Menu.htm#Examples">Menu 示例</a>.</p>

</body>
</html>